package Z.dailyExercise.May;

public class _1486数组异或操作 {
    public int xorOperation(int n, int start) {
        int res = 0;
        int i =0;
        while (i<n){
            int num = start+ 2*i;
            res = res^num;
            i++;
        }

        return res;

    }
}
